package com.artisan.spider.component;

import us.codecraft.webmagic.downloader.Downloader;

import java.io.IOException;

public class DownloaderFactory {

    private static SeleniumDownloader seleniumDownloader = new SeleniumDownloader("F:/google chome/chromedriver.exe");

    public static Downloader getDownloader() {
            return seleniumDownloader;
    }

    public static void close() throws IOException {
        seleniumDownloader.close();
    }
}
